function listUserAsk(suc) {
	var url = "../ask/listUserAsk.action";
	var params = {"query.userId":$("#container").attr("userid")};
	doAjaxHtml(url, params, suc);
}
function findNoLoginFansList(suc) {
	var url = "../fans/findNoLoginFansList.action";
	var params = {"query.userId":$("#myId").attr("value")};
	doAjaxHtml(url, params, suc);
}
function findNoLoginFollowList(suc) {
	var url = "../follow/findNoLoginFollowList.action";
	var params = {"query.userId":$("#myId").attr("value")};
	doAjaxHtml(url, params, suc);
}
function findFansList(suc) {
	var url = "../fans/findFansList.action";
	var params = {"query.userId":$("#myId").attr("value")};
	doAjaxHtml(url, params, suc);
}
function findFollowList(suc) {
	var url = "../follow/findFollowList.action";
	var params = {"query.userId":$("#myId").attr("value")};
	doAjaxHtml(url, params, suc);
}
function findUserSetting(suc) {
	var url = "../personal/userSetting.action";
	var params = {"user.id":$("#container").attr("userid")};
	doAjaxHtml(url, params, suc);
}
// 推荐用户列表
function getRecommendList(userSize, obj) {
	var url = "../user/recommendFriends.action";
	var params = {
		"size" : userSize
	};
	doAjaxHtml(url, params, function(response) {
				obj.append($(response));
				obj.fadeIn();
				$(".followA").click(function() {
							var obj = $(this);
							var followId = obj.attr("userId");
							followFriend(followId, function(ajaxResult) {
										if (ajaxResult.OK) {
											alert("关注成功");
											$("#peopleFollow").nextAll().remove();
											getRecommendList(3, $(".pToFollow"));
										} else {
											alert("关注失败");
										}

									});
						});
			});
}

// 当天粉丝数最多的用户列表
function getMostFansToday() {
	var url = "../top/topFansToday.action";
	doAjaxHtml(url, null, function(response) {
				$(".dayMost").append($(response));
			});
}
// 当天关注最多的用户列表
function getFollowMostToday() {
	var url = "../user/getFollowMostToday.action";
	doAjaxHtml(url, null, function(response) {
				$(".dayMost").append($(response));
			});
}
// 关注好友
function followFriend(followId, success_callback) {
	var url = "../followAjax/addFollow.action";
	var param = {
		"query.followId" : followId
	}
	doAjax(url, param, success_callback);
}

